package ru.pb.game.objects.model.players.enums;

public enum Team
{
	CHARACTER_TEAM_NONE, //
	CHARACTER_TEAM_RED, //
	CHARACTER_TEAM_BLUE, //
	NPC_TEAM_RED, //
	NPC_TEAM_BLUE, //
	CHARACTER_TEAM_RB; // LUA: HARACTER_TEAM_RED | CHARACTER_TEAM_BLUE

	public static Team valueOf(int team)
	{
		for(Team t : values())
			if(t.ordinal() == team)
				return t;
		return CHARACTER_TEAM_NONE;
	}
}